"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[361],{34554:function(e,n,t){t.d(n,{Cc:function(){return eR},Co:function(){return eN},FP:function(){return m},Gi:function(){return A},J9:function(){return eI},UY:function(){return ew},Wn:function(){return eL},Xx:function(){return ez},Z_:function(){return ek},vx:function(){return ex},w6:function(){return Y},wb:function(){return J}});var i,r,o=t(18393),a=t(68412),s=t(2817),l=function(e,n){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])})(e,n)};function u(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}l(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var c=function(){return(c=Object.assign||function(e){for(var n,t=1,i=arguments.length;t0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var i,r,o=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(r)throw r.error}}return a}function _(){for(var e=[],n=0;nt){var r=(e-t)%i;e=n+r}return e},H=function(e,n){var t,i;try{for(var r=d(e),o=r.next();!o.done;o=r.next()){var a=o.value;if(n(a))return a}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}return null},G=function(e,n){for(var t=0;t=n&&e<=t},X=function(e,n){return e>=n?e%n:e<0?S((e+1)%n-1,n):e},Y=function(e){for(var n=Array(e),t=0;t0&&i>=n&&(t._maxResizeDebounceTimer=window.setTimeout(t._doScheduledResize,i)),t._resizeTimer>0&&(clearTimeout(t._resizeTimer),t._resizeTimer=0),t._resizeTimer=window.setTimeout(t._doScheduledResize,n))},this._doScheduledResize=function(){clearTimeout(t._resizeTimer),clearTimeout(t._maxResizeDebounceTimer),t._maxResizeDebounceTimer=-1,t._resizeTimer=-1,t._flicking.resize()},this._skipFirstResize=(n=!0,function(){if(n){n=!1;return}t._onResize()}),this._flicking=e,this._enabled=!1,this._resizeObserver=null,this._resizeTimer=-1,this._maxResizeDebounceTimer=-1}var n=e.prototype;return Object.defineProperty(n,"enabled",{get:function(){return this._enabled},enumerable:!1,configurable:!0}),n.enable=function(){var e=this._flicking,n=e.viewport;if(this._enabled&&this.disable(),e.useResizeObserver&&window.ResizeObserver){var t=new ResizeObserver(0!==n.width||0!==n.height?this._skipFirstResize:this._onResize);t.observe(e.viewport.element),this._resizeObserver=t}else window.addEventListener("resize",this._onResize);return this._enabled=!0,this},n.disable=function(){if(!this._enabled)return this;var e=this._resizeObserver;return e?(e.disconnect(),this._resizeObserver=null):window.removeEventListener("resize",this._onResize),this._enabled=!1,this},e}(),$=function(){function e(e){this._element=e,this._rendered=!0}var n=e.prototype;return Object.defineProperty(n,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),n.show=function(e){var n=this.element,t=e.camera.element;n.parentElement!==t&&(t.appendChild(n),this._rendered=!0)},n.hide=function(e){var n=this.element,t=e.camera.element;n.parentElement===t&&(t.removeChild(n),this._rendered=!1)},e}(),ee=function(){function e(e){this._flicking=e}var n=e.prototype;return Object.defineProperty(n,"element",{get:function(){return this._virtualElement.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rendered",{get:function(){return this._virtualElement.visible},enumerable:!1,configurable:!0}),Object.defineProperty(n,"_virtualElement",{get:function(){var e=this._flicking,n=this._panel.elementIndex;return e.virtual.elements[n]},enumerable:!1,configurable:!0}),n.init=function(e){this._panel=e},n.show=function(){},n.hide=function(){},e}(),en=function(){function e(e,n){var t,i,r,o;this._flicking=e,this._renderPanel=null!==(t=null==n?void 0:n.renderPanel)&&void 0!==t?t:function(){return""},this._initialPanelCount=null!==(i=null==n?void 0:n.initialPanelCount)&&void 0!==i?i:-1,this._cache=null!==(r=null==n?void 0:n.cache)&&void 0!==r&&r,this._panelClass=null!==(o=null==n?void 0:n.panelClass)&&void 0!==o?o:O.DEFAULT_VIRTUAL,this._elements=[]}var n=e.prototype;return Object.defineProperty(n,"elements",{get:function(){return this._elements},enumerable:!1,configurable:!0}),Object.defineProperty(n,"renderPanel",{get:function(){return this._renderPanel},set:function(e){this._renderPanel=e,this._flicking.renderer.panels.forEach(function(e){return e.uncacheRenderResult()})},enumerable:!1,configurable:!0}),Object.defineProperty(n,"initialPanelCount",{get:function(){return this._initialPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(n,"cache",{get:function(){return this._cache},set:function(e){this._cache=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"panelClass",{get:function(){return this._panelClass},set:function(e){this._panelClass=e},enumerable:!1,configurable:!0}),n.init=function(){var e=this._flicking;if(e.virtualEnabled){e.externalRenderer||e.renderExternal||this._initVirtualElements();var n=e.camera.children;this._elements=n.map(function(e){return{nativeElement:e,visible:!0}})}},n.show=function(e){var n=this._elements[e],t=n.nativeElement;n.visible=!0,t.style.display&&(t.style.display="")},n.hide=function(e){var n=this._elements[e],t=n.nativeElement;n.visible=!1,t.style.display="none"},n.append=function(e){void 0===e&&(e=1);var n=this._flicking;return this.insert(n.panels.length,e)},n.prepend=function(e){return void 0===e&&(e=1),this.insert(0,e)},n.insert=function(e,n){return(void 0===n&&(n=1),n<=0)?[]:this._flicking.renderer.batchInsert({index:e,elements:Y(n),hasDOMInElements:!1})},n.remove=function(e,n){return n<=0?[]:this._flicking.renderer.batchRemove({index:e,deleteCount:n,hasDOMInElements:!1})},n._initVirtualElements=function(){var e=this,n=this._flicking,t=n.camera.element,i=n.panelsPerView,r=document.createDocumentFragment();Y(i+1).map(function(n){var t=document.createElement("div");return t.className=e._panelClass,t.dataset.elementIndex=n.toString(),t}).forEach(function(e){r.appendChild(e)}),t.appendChild(r)},e}(),et={HOLD:"hold",CHANGE:"change",RELEASE:"release",ANIMATION_END:"animationEnd",FINISH:"finish"},ei="flick";(i=r||(r={}))[i.IDLE=0]="IDLE",i[i.HOLDING=1]="HOLDING",i[i.DRAGGING=2]="DRAGGING",i[i.ANIMATING=3]="ANIMATING",i[i.DISABLED=4]="DISABLED";var er=function(){function e(){this._delta=0,this._targetPanel=null}var n=e.prototype;return Object.defineProperty(n,"delta",{get:function(){return this._delta},enumerable:!1,configurable:!0}),Object.defineProperty(n,"targetPanel",{get:function(){return this._targetPanel},set:function(e){this._targetPanel=e},enumerable:!1,configurable:!0}),n.onEnter=function(e){this._delta=e._delta,this._targetPanel=e._targetPanel},n.onHold=function(e){},n.onChange=function(e){},n.onRelease=function(e){},n.onAnimationEnd=function(e){},n.onFinish=function(e){},n._moveToChangedPosition=function(e){var n=e.flicking,t=e.axesEvent,i=e.transitTo,a=t.delta[ei];if(a){this._delta+=a;var s=n.camera,l=s.position,u=t.pos[ei],c=n.circularEnabled?F(u,s.range.min,s.range.max):u;s.lookAt(c);var f=new o.L(m.MOVE,{isTrusted:t.isTrusted,holding:this.holding,direction:L(0,t.delta[ei]),axesEvent:t});n.trigger(f),f.isCanceled()&&(s.lookAt(l),i(r.DISABLED))}},e}(),eo=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!1,n.animating=!1,n}u(n,e);var t=n.prototype;return t.onEnter=function(){this._delta=0,this._targetPanel=null},t.onHold=function(e){var n=e.flicking,t=e.axesEvent,i=e.transitTo;if(n.renderer.panelCount<=0){i(r.DISABLED);return}var a=new o.L(m.HOLD_START,{axesEvent:t});n.trigger(a),i(a.isCanceled()?r.DISABLED:r.HOLDING)},t.onChange=function(e){var n=e.flicking,t=e.axesEvent,i=e.transitTo,a=n.control.controller.animatingContext,s=new o.L(m.MOVE_START,{isTrusted:t.isTrusted,holding:this.holding,direction:L(a.start,a.end),axesEvent:t});n.trigger(s),s.isCanceled()?i(r.DISABLED):i(r.ANIMATING).onChange(e)},n}(er),ea=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!0,n.animating=!1,n._releaseEvent=null,n}u(n,e);var t=n.prototype;return t.onChange=function(e){var n=e.flicking,t=e.axesEvent,i=e.transitTo,a=t.inputEvent,s=n.horizontal?a.offsetX:a.offsetY,l=new o.L(m.MOVE_START,{isTrusted:t.isTrusted,holding:this.holding,direction:L(0,-s),axesEvent:t});n.trigger(l),l.isCanceled()?i(r.DISABLED):i(r.DRAGGING).onChange(e)},t.onRelease=function(e){var n=e.flicking,t=e.axesEvent,i=e.transitTo;if(n.trigger(new o.L(m.HOLD_END,{axesEvent:t})),0!==t.delta.flick){t.setTo({flick:n.camera.position},0),i(r.IDLE);return}this._releaseEvent=t},t.onFinish=function(e){var n,t,i,a=e.flicking;if((0,e.transitTo)(r.IDLE),this._releaseEvent){var s=this._releaseEvent.inputEvent.srcEvent;if("touchend"===s.type){var l=s.changedTouches[0];i=document.elementFromPoint(l.clientX,l.clientY)}else i=s.target;var u=a.renderer.panels,c=null;try{for(var f=d(u),h=f.next();!h.done;h=f.next()){var g=h.value;if(g.contains(i)){c=g;break}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}if(c){var _=a.camera.position,p=c.position;a.trigger(new o.L(m.SELECT,{index:c.index,panel:c,direction:L(_,p)}))}}},n}(er),es=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!0,n.animating=!0,n}u(n,e);var t=n.prototype;return t.onChange=function(e){this._moveToChangedPosition(e)},t.onRelease=function(e){var n,t=e.flicking,i=e.axesEvent,a=e.transitTo;if(t.trigger(new o.L(m.HOLD_END,{axesEvent:i})),t.renderer.panelCount<=0){a(r.IDLE);return}a(r.ANIMATING);var s=t.control,l=i.destPos[ei],u=Math.max(i.duration,t.duration);try{s.moveToPosition(l,u,i)}catch(e){a(r.IDLE),i.setTo(((n={})[ei]=t.camera.position,n),0)}},n}(er),el=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!1,n.animating=!0,n}u(n,e);var t=n.prototype;return t.onHold=function(e){var n=e.flicking,t=e.axesEvent,i=e.transitTo,a=this._targetPanel,s=n.control;this._delta=0,n.control.updateInput(),n.changeOnHold&&a&&s.setActive(a,s.activePanel,t.isTrusted);var l=new o.L(m.HOLD_START,{axesEvent:t});n.trigger(l),i(l.isCanceled()?r.DISABLED:r.DRAGGING)},t.onChange=function(e){this._moveToChangedPosition(e)},t.onFinish=function(e){var n=e.flicking,t=e.axesEvent,i=e.transitTo,a=n.control,s=a.controller.animatingContext;i(r.IDLE),n.trigger(new o.L(m.MOVE_END,{isTrusted:t.isTrusted,direction:L(s.start,s.end),axesEvent:t}));var l=this._targetPanel;l&&a.setActive(l,a.activePanel,t.isTrusted)},n}(er),eu=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.holding=!1,n.animating=!0,n}u(n,e);var t=n.prototype;return t.onAnimationEnd=function(e){(0,e.transitTo)(r.IDLE)},t.onChange=function(e){var n=e.axesEvent,t=e.transitTo;n.stop(),t(r.IDLE)},t.onRelease=function(e){var n=e.axesEvent,t=e.transitTo;0===n.delta.flick&&t(r.IDLE)},n}(er),ec=function(){function e(){var e=this;this.transitTo=function(n){var t;switch(n){case r.IDLE:t=new eo;break;case r.HOLDING:t=new ea;break;case r.DRAGGING:t=new es;break;case r.ANIMATING:t=new el;break;case r.DISABLED:t=new eu}return t.onEnter(e._state),e._state=t,e._state},this._state=new eo}var n=e.prototype;return Object.defineProperty(n,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),n.fire=function(e,n){var t=this._state,i=c(c({},n),{transitTo:this.transitTo});switch(e){case et.HOLD:t.onHold(i);break;case et.CHANGE:t.onChange(i);break;case et.RELEASE:t.onRelease(i);break;case et.ANIMATION_END:t.onAnimationEnd(i);break;case et.FINISH:t.onFinish(i)}},e}(),ef=function(){function e(){var e=this;this._onAxesHold=function(){e._dragged=!1},this._onAxesChange=function(){var n;e._dragged=!!(null===(n=e._panInput)||void 0===n?void 0:n.isEnabled())},this._preventClickWhenDragged=function(n){e._dragged&&(n.preventDefault(),n.stopPropagation()),e._dragged=!1},this._resetInternalValues(),this._stateMachine=new ec}var n=e.prototype;return Object.defineProperty(n,"axes",{get:function(){return this._axes},enumerable:!1,configurable:!0}),Object.defineProperty(n,"panInput",{get:function(){return this._panInput},enumerable:!1,configurable:!0}),Object.defineProperty(n,"stateMachine",{get:function(){return this._stateMachine},enumerable:!1,configurable:!0}),Object.defineProperty(n,"state",{get:function(){return this._stateMachine.state},enumerable:!1,configurable:!0}),Object.defineProperty(n,"animatingContext",{get:function(){return this._animatingContext},enumerable:!1,configurable:!0}),Object.defineProperty(n,"controlParams",{get:function(){var e=this._axes;if(!e)return{range:{min:0,max:0},position:0,circular:!1};var n=e.axis[ei];return{range:{min:n.range[0],max:n.range[1]},circular:n.circular[0],position:this.position}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"enabled",{get:function(){var e,n;return null!==(n=null===(e=this._panInput)||void 0===e?void 0:e.isEnabled())&&void 0!==n&&n},enumerable:!1,configurable:!0}),Object.defineProperty(n,"position",{get:function(){var e,n;return null!==(n=null===(e=this._axes)||void 0===e?void 0:e.get([ei])[ei])&&void 0!==n?n:0},enumerable:!1,configurable:!0}),Object.defineProperty(n,"range",{get:function(){var e,n;return null!==(n=null===(e=this._axes)||void 0===e?void 0:e.axis[ei].range)&&void 0!==n?n:[0,0]},enumerable:!1,configurable:!0}),Object.defineProperty(n,"bounce",{get:function(){var e;return null===(e=this._axes)||void 0===e?void 0:e.axis[ei].bounce},enumerable:!1,configurable:!0}),n.init=function(e){var n,t=this;this._flicking=e,this._axes=new a.ZP(((n={})[ei]={range:[0,0],circular:!1,bounce:[0,0]},n),{deceleration:e.deceleration,interruptable:e.interruptable,nested:e.nested,easing:e.easing}),this._panInput=new a.Ju(e.viewport.element,{inputType:e.inputType,threshold:1,iOSEdgeSwipeThreshold:e.iOSEdgeSwipeThreshold,scale:e.horizontal?[-1,0]:[0,-1],releaseOnScroll:!0});var i=this._axes;for(var r in i.connect(e.horizontal?[ei,""]:["",ei],this._panInput),et)!function(n){var r=et[n];i.on(r,function(n){t._stateMachine.fire(r,{flicking:e,axesEvent:n})})}(r);return this},n.destroy=function(){var e;this._axes&&(this.removePreventClickHandler(),this._axes.destroy()),null===(e=this._panInput)||void 0===e||e.destroy(),this._resetInternalValues()},n.enable=function(){var e;return null===(e=this._panInput)||void 0===e||e.enable(),this},n.disable=function(){var e;return null===(e=this._panInput)||void 0===e||e.disable(),this},n.release=function(){var e;return null===(e=this._panInput)||void 0===e||e.release(),this},n.updateAnimation=function(e,n){var t,i;return this._animatingContext=c(c({},this._animatingContext),{end:e}),null===(i=this._axes)||void 0===i||i.updateAnimation({destPos:((t={})[ei]=e,t),duration:n}),this},n.stopAnimation=function(){var e;return null===(e=this._axes)||void 0===e||e.stopAnimation(),this},n.update=function(e){var n,t=A(this._flicking),i=t.camera,r=this._axes,o=r.axis[ei];return o.circular=[e.circular,e.circular],o.range=[e.range.min,e.range.max],o.bounce=w(t.bounce,i.size),r.axisManager.set(((n={})[ei]=e.position,n)),this},n.addPreventClickHandler=function(){var e=A(this._flicking),n=this._axes,t=e.camera.element;return n.on(et.HOLD,this._onAxesHold),n.on(et.CHANGE,this._onAxesChange),t.addEventListener("click",this._preventClickWhenDragged,!0),this},n.removePreventClickHandler=function(){var e=A(this._flicking),n=this._axes,t=e.camera.element;return n.off(et.HOLD,this._onAxesHold),n.off(et.CHANGE,this._onAxesChange),t.removeEventListener("click",this._preventClickWhenDragged,!0),this},n.animateTo=function(e,n,t){var i,r=this,o=this._axes,a=this._stateMachine.state;if(!o)return Promise.reject(new J(v.NOT_ATTACHED_TO_FLICKING,p.NOT_ATTACHED_TO_FLICKING));var s=o.get([ei])[ei];if(s===e){var l=A(this._flicking);return l.camera.lookAt(e),a.targetPanel&&l.control.setActive(a.targetPanel,l.control.activePanel,null!==(i=null==t?void 0:t.isTrusted)&&void 0!==i&&i),Promise.resolve()}this._animatingContext={start:s,end:e,offset:0};var u=function(){var i,a;o.once(et.FINISH,function(){r._animatingContext={start:0,end:0,offset:0}}),t?t.setTo(((i={})[ei]=e,i),n):o.setTo(((a={})[ei]=e,a),n)};return new Promise(function(e,n){var t=function(){o.off(et.HOLD,i),e()},i=function(){o.off(et.FINISH,t),n(new J(v.ANIMATION_INTERRUPTED,p.ANIMATION_INTERRUPTED))};o.once(et.FINISH,t),o.once(et.HOLD,i),u()})},n.updateDirection=function(){var e=A(this._flicking),n=this._axes,t=this._panInput;n.disconnect(t),n.connect(e.horizontal?[ei,""]:["",ei],t),t.options.scale=e.horizontal?[-1,0]:[0,-1]},n._resetInternalValues=function(){this._flicking=null,this._axes=null,this._panInput=null,this._animatingContext={start:0,end:0,offset:0},this._dragged=!1},e}(),eh=function(){function e(){this._flicking=null,this._controller=new ef,this._activePanel=null}var n=e.prototype;return Object.defineProperty(n,"controller",{get:function(){return this._controller},enumerable:!1,configurable:!0}),Object.defineProperty(n,"activeIndex",{get:function(){var e,n;return null!==(n=null===(e=this._activePanel)||void 0===e?void 0:e.index)&&void 0!==n?n:-1},enumerable:!1,configurable:!0}),Object.defineProperty(n,"activePanel",{get:function(){return this._activePanel},enumerable:!1,configurable:!0}),Object.defineProperty(n,"animating",{get:function(){return this._controller.state.animating},enumerable:!1,configurable:!0}),Object.defineProperty(n,"holding",{get:function(){return this._controller.state.holding},enumerable:!1,configurable:!0}),n.init=function(e){return this._flicking=e,this._controller.init(e),this},n.destroy=function(){this._controller.destroy(),this._flicking=null,this._activePanel=null},n.enable=function(){return this._controller.enable(),this},n.disable=function(){return this._controller.disable(),this},n.release=function(){return this._controller.release(),this},n.updateAnimation=function(e,n,t){var i=this._controller.state,r=this._getPosition(e,null!=t?t:P.NONE);return i.targetPanel=e,this._controller.updateAnimation(r,n),this},n.stopAnimation=function(){return this._controller.state.targetPanel=null,this._controller.stopAnimation(),this},n.updatePosition=function(e){var n=A(this._flicking).camera,t=this._activePanel;t&&n.lookAt(n.clampToReachablePosition(t.position))},n.updateInput=function(){var e=A(this._flicking).camera;return this._controller.update(e.controlParams),this},n.resetActive=function(){return this._activePanel=null,this},n.moveToPanel=function(e,n){var t=n.duration,i=n.direction,r=void 0===i?P.NONE:i,o=n.axesEvent;return f(this,void 0,void 0,function(){var n;return h(this,function(i){return n=this._getPosition(e,r),this._triggerIndexChangeEvent(e,e.position,o),[2,this._animateToPosition({position:n,duration:t,newActivePanel:e,axesEvent:o})]})})},n.setActive=function(e,n,t){var i,r=A(this._flicking);this._activePanel=e,r.camera.updateAdaptiveHeight(),e!==n?r.trigger(new o.L(m.CHANGED,{index:e.index,panel:e,prevIndex:null!==(i=null==n?void 0:n.index)&&void 0!==i?i:-1,prevPanel:n,isTrusted:t,direction:n?L(n.position,e.position):P.NONE})):r.trigger(new o.L(m.RESTORED,{isTrusted:t}))},n.copy=function(e){this._flicking=e._flicking,this._activePanel=e._activePanel,this._controller=e._controller},n._triggerIndexChangeEvent=function(e,n,t){var i,r=A(this._flicking),a=e!==this._activePanel?m.WILL_CHANGE:m.WILL_RESTORE,s=r.camera,l=this._activePanel,u=new o.L(a,{index:e.index,panel:e,isTrusted:(null==t?void 0:t.isTrusted)||!1,direction:L(null!==(i=null==l?void 0:l.position)&&void 0!==i?i:s.position,n)});if(r.trigger(u),u.isCanceled())throw new J(v.STOP_CALLED_BY_USER,p.STOP_CALLED_BY_USER)},n._animateToPosition=function(e){var n=e.position,t=e.duration,i=e.newActivePanel,r=e.axesEvent;return f(this,void 0,void 0,function(){var e,o,a=this;return h(this,function(s){return(e=A(this._flicking),o=function(){return a._controller.animateTo(n,t,r)},this._controller.state.targetPanel=i,t<=0)?[2,o()]:[2,o().then(function(){return f(a,void 0,void 0,function(){return h(this,function(n){switch(n.label){case 0:return[4,e.renderer.render()];case 1:return n.sent(),[2]}})})}).catch(function(e){if(!r||!(e instanceof J)||e.code!==p.ANIMATION_INTERRUPTED)throw e})]})})},n._getPosition=function(e,n){void 0===n&&(n=P.NONE);var t=A(this._flicking),i=t.camera,r=e.position,o=i.findNearestAnchor(r);if(e.removed||!o)throw new J(v.POSITION_NOT_REACHABLE(e.position),p.POSITION_NOT_REACHABLE);if(i.canReach(e)){if(t.circularEnabled){var a=this._controller.position,s=i.rangeDiff;r=[r,r+s,r-s].filter(function(e){return n===P.NONE||(n===P.PREV?e<=a:e>=a)}).reduce(function(e,n){return Math.abs(a-n)=u&&h>0)i=this._findSnappedAnchor(e,s);else{if(!(f>=r.threshold)||!(f>0))return this.moveToPanel(s.panel,{duration:n,axesEvent:t});i=this._findAdjacentAnchor(e,c,s)}return this._triggerIndexChangeEvent(i.panel,e,t),this._animateToPosition({position:o.clampToReachablePosition(i.position),duration:n,newActivePanel:i.panel,axesEvent:t})},t._findSnappedAnchor=function(e,n){var t=A(this._flicking),i=t.camera,r=this._count,o=i.position,a=i.clampToReachablePosition(e),s=i.findAnchorIncludePosition(a);if(!n||!s)throw new J(v.POSITION_NOT_REACHABLE(e),p.POSITION_NOT_REACHABLE);if(!isFinite(r))return s;var l=t.panelCount,u=i.anchorPoints,c=Math.sign(e-o)*Math.floor(Math.abs(e-o)/i.rangeDiff);e>o&&s.indexn.position&&s.index===n.index?c+=1:(en.index||s.positiono&&d.indexn.index&&(g-=1),new ed({index:d.index,position:d.position+g*i.rangeDiff,panel:d.panel})},t._findAdjacentAnchor=function(e,n,t){var i,r=A(this._flicking).camera;if(r.circularEnabled){var o=r.findAnchorIncludePosition(e);if(o&&o.position!==t.position)return o}return null!==(i=n>0?r.getNextAnchor(t):r.getPrevAnchor(t))&&void 0!==i?i:t},t._calcSnapThreshold=function(e,n){var t=e>n.position,i=n.panel,r=i.size,o=i.alignPosition;return t?r-o+i.margin.next:o+i.margin.prev},n}(eh),e_=function(e){function n(n){var t=(void 0===n?{}:n).stopAtEdge,i=e.call(this)||this;return i._stopAtEdge=void 0===t||t,i}u(n,e);var t=n.prototype;return Object.defineProperty(t,"stopAtEdge",{get:function(){return this._stopAtEdge},set:function(e){this._stopAtEdge=e},enumerable:!1,configurable:!0}),t.updatePosition=function(e){var n=A(this._flicking).camera,t=this._activePanel;if(t){var i=t.range,r=i.min+(i.max-i.min)*e;n.lookAt(n.clampToReachablePosition(r))}},t.moveToPosition=function(e,n,t){var i=A(this._flicking).camera,r=i.clampToReachablePosition(e),o=i.findAnchorIncludePosition(r);if(!o)return Promise.reject(new J(v.POSITION_NOT_REACHABLE(e),p.POSITION_NOT_REACHABLE));var a=o.panel;return a!==this._activePanel&&this._triggerIndexChangeEvent(a,e,t),this._animateToPosition({position:this._stopAtEdge?r:e,duration:n,newActivePanel:a,axesEvent:t})},n}(eh),ep=function(e){function n(n){var t=(void 0===n?{}:n).count,i=e.call(this)||this;return i.setActive=function(n,t,r){e.prototype.setActive.call(i,n,t,r),i.updateInput()},i._count=void 0===t?1:t,i._resetIndexRange(),i}u(n,e);var t=n.prototype;return Object.defineProperty(t,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!1,configurable:!0}),t.destroy=function(){e.prototype.destroy.call(this),this._resetIndexRange()},t.updateInput=function(){var e,n=A(this._flicking),t=n.camera,i=n.renderer,r=this._controller,o=t.controlParams,a=this._count,s=r.state.animating?null===(e=t.findNearestAnchor(t.position))||void 0===e?void 0:e.panel:this._activePanel;if(!s)return r.update(o),this._resetIndexRange(),this;var l=o.range,u=s.position,c=s.index,f=i.panelCount,h=c-a,d=c+a;h<0&&(h=n.circularEnabled?S((h+1)%f-1,f):I(h,0,f-1)),d>=f&&(d=n.circularEnabled?d%f:I(d,0,f-1));var g=i.panels[h],_=i.panels[d],p=Math.max(g.position,l.min),v=Math.min(_.position,l.max);return p>u&&(p-=t.rangeDiff),vv&&(o.position-=t.rangeDiff)),o.circular=!1,r.update(o),this._indexRange={min:g.index,max:_.index},this},t.moveToPanel=function(n,t){return f(this,void 0,void 0,function(){var i;return h(this,function(r){return i=A(this._flicking).camera,this._controller.update(i.controlParams),[2,e.prototype.moveToPanel.call(this,n,t)]})})},t.moveToPosition=function(e,n,t){var i,r,o=A(this._flicking),a=o.camera,s=this._activePanel,l=this._controller.range,u=this._indexRange,c=a.range,f=this._controller.state,h=I(a.clampToReachablePosition(e),l[0],l[1]),d=a.findAnchorIncludePosition(h);if(!d||!s)return Promise.reject(new J(v.POSITION_NOT_REACHABLE(e),p.POSITION_NOT_REACHABLE));var g=s.position,_=Math.abs(o.animating?f.delta:e-a.position)>=o.threshold,m=e>g?a.getNextAnchor(d):a.getPrevAnchor(d),b=a.anchorPoints,P=b[0],E=b[b.length-1],O=e<=c.min&&U(P.panel.index,u.min,u.max),y=e>=c.max&&U(E.panel.index,u.min,u.max),x=m&&(u.min<=u.max?U(m.index,u.min,u.max):m.index>=u.min||m.index<=u.max);if(O||y){var T=et)return n[i-1];t=r}return n[n.length-1]},n.clampToReachablePosition=function(e){var n=this._flicking.camera.range;return I(e,n.min,n.max)},n.getCircularOffset=function(){return 0},n.canReach=function(e){var n=this._flicking.camera.range;if(e.removed)return!1;var t=e.position;return t>=n.min&&t<=n.max},n.canSee=function(e){var n=this._flicking.camera.visibleRange;return e.isVisibleOnRange(n.min,n.max)},e}(),em=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}u(n,e);var t=n.prototype;return t.checkAvailability=function(){return!0},t.getRange=function(){var e,n,t=this._flicking.renderer,i=t.getPanel(0),r=t.getPanel(t.panelCount-1);return{min:null!==(e=null==i?void 0:i.position)&&void 0!==e?e:0,max:null!==(n=null==r?void 0:r.position)&&void 0!==n?n:0}},n}(ev),eb=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}u(n,e);var t=n.prototype;return t.checkAvailability=function(){var e=this._flicking,n=e.renderer.panels;if(n.length<=0)return!1;var t=n[0],i=n[n.length-1],r=t.range.min-t.margin.prev,o=i.range.max+i.margin.next,a=e.camera.size,s=o-r;return n.every(function(e){return s-e.size>=a})},t.getRange=function(){var e=this._flicking.renderer.panels;if(e.length<=0)return{min:0,max:0};var n=e[0],t=e[e.length-1];return{min:n.range.min-n.margin.prev,max:t.range.max+t.margin.next}},t.getAnchors=function(){return this._flicking.renderer.panels.map(function(e,n){return new ed({index:n,position:e.position,panel:e})})},t.findNearestAnchor=function(e){var n=this._flicking.camera,t=n.anchorPoints;if(t.length<=0)return null;for(var i=n.range,r=1/0,o=-1,a=0;a0&&(n===i.min||n===i.max)&&(l=[l,new ed({index:0,position:r[0].position+o,panel:r[0].panel}),new ed({index:a-1,position:r[a-1].position-o,panel:r[a-1].panel})].filter(function(e){return!!e}).reduce(function(e,t){return e&&Math.abs(e.position-n)i.max){var u=Math.floor((n-i.max)/o)+1;return new ed({index:l.index,position:l.position+o*u,panel:l.panel})}return l},t.getCircularOffset=function(){var e=this._flicking;if(!e.camera.circularEnabled)return 0;var n=e.panels.filter(function(e){return e.toggled}),t=n.filter(function(e){return e.toggleDirection===P.PREV}),i=n.filter(function(e){return e.toggleDirection===P.NEXT});return this._calcPanelAreaSum(t)-this._calcPanelAreaSum(i)},t.clampToReachablePosition=function(e){return e},t.canReach=function(e){return!e.removed},t.canSee=function(n){var t=this._flicking.camera,i=t.range,r=t.rangeDiff,o=t.visibleRange,a=e.prototype.canSee.call(this,n);return o.mini.max?a||n.isVisibleOnRange(o.min-r,o.max-r):a},t._calcPanelAreaSum=function(e){return e.reduce(function(e,n){return e+n.sizeIncludingMargin},0)},n}(ev),eP=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}u(n,e);var t=n.prototype;return t.checkAvailability=function(){var e=this._flicking,n=e.renderer,t=n.getPanel(0),i=n.getPanel(n.panelCount-1);if(!t||!i)return!1;var r=e.camera.size,o=t.range.min;return r0){var o=r[0].position!==i.min,a=r[r.length-1].position!==i.max,s=o?1:0,l=r.map(function(e,n){return new ed({index:n+s,position:e.position,panel:e})});return o&&l.splice(0,0,new ed({index:0,position:i.min,panel:t[r[0].index-1]})),a&&l.push(new ed({index:l.length,position:i.max,panel:t[r[r.length-1].index+1]})),l}if(i.min===i.max)return[new ed({index:0,position:i.min,panel:this._findNearestPanel(i.min,t)})];var u=this._findNearestPanel(i.min,t),c=u.index===t.length-1?u.prev():u,f=c.next();return[new ed({index:0,position:i.min,panel:c}),new ed({index:1,position:i.max,panel:f})]},t.findAnchorIncludePosition=function(n){var t=this._flicking.camera,i=t.range,r=t.anchorPoints;return r.length<=0?null:n<=i.min?r[0]:n>=i.max?r[r.length-1]:e.prototype.findAnchorIncludePosition.call(this,n)},t._findNearestPanel=function(e,n){for(var t=1/0,i=0;it)return n[i-1];t=r}return n[n.length-1]},n}(ev),eE=function(){function e(e,n){var t=this,i=(void 0===n?{}:n).align,r=void 0===i?b.CENTER:i;this._checkTranslateSupport=function(){var e,n,i=document.documentElement.style,r="";try{for(var o=d(["webkitTransform","msTransform","MozTransform","OTransform","transform"]),a=o.next();!a.done;a=o.next()){var s=a.value;s in i&&(r=s)}}catch(n){e={error:n}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}if(!r)throw new J(v.TRANSFORM_NOT_SUPPORTED,p.TRANSFORM_NOT_SUPPORTED);t._transform=r},this._flicking=e,this._resetInternalValues(),this._align=r}var n=e.prototype;return Object.defineProperty(n,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(n,"children",{get:function(){return R(this._el.children)},enumerable:!1,configurable:!0}),Object.defineProperty(n,"position",{get:function(){return this._position},enumerable:!1,configurable:!0}),Object.defineProperty(n,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(n,"offset",{get:function(){return this._offset-this._circularOffset},enumerable:!1,configurable:!0}),Object.defineProperty(n,"circularEnabled",{get:function(){return this._circularEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(n,"mode",{get:function(){return this._mode},enumerable:!1,configurable:!0}),Object.defineProperty(n,"range",{get:function(){return this._range},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rangeDiff",{get:function(){return this._range.max-this._range.min},enumerable:!1,configurable:!0}),Object.defineProperty(n,"visiblePanels",{get:function(){return this._visiblePanels},enumerable:!1,configurable:!0}),Object.defineProperty(n,"visibleRange",{get:function(){return{min:this._position-this._alignPos,max:this._position-this._alignPos+this.size}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"anchorPoints",{get:function(){return this._anchors},enumerable:!1,configurable:!0}),Object.defineProperty(n,"controlParams",{get:function(){return{range:this._range,position:this._position,circular:this._circularEnabled}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"atEdge",{get:function(){return this._position<=this._range.min||this._position>=this._range.max},enumerable:!1,configurable:!0}),Object.defineProperty(n,"size",{get:function(){var e=this._flicking;return e?e.horizontal?e.viewport.width:e.viewport.height:0},enumerable:!1,configurable:!0}),Object.defineProperty(n,"progress",{get:function(){var e=this._flicking,n=this._position+this._offset,t=this.findNearestAnchor(this._position);if(!e||!t)return NaN;var i=t.panel,r=i.position+i.offset,o=e.control.controller.bounce,a=this.range,s=a.min,l=a.max,u=this.rangeDiff;if(n===r)return i.index;if(nr&&(f-=u),i.index-1+V(n,f,r)}var h=i.next(),d=h?h.position+h.offset:l+o[1];return d0||a.length>0)&&n.renderer.render().then(function(){n.trigger(new o.L(m.VISIBLE_CHANGE,{added:r,removed:a,visiblePanels:t}))})},n._checkNeedPanel=function(){var e=this._needPanelTriggered;if(!e.prev||!e.next){var n=A(this._flicking),t=n.renderer.panels;if(t.length<=0){e.prev||(n.trigger(new o.L(m.NEED_PANEL,{direction:P.PREV})),e.prev=!0),e.next||(n.trigger(new o.L(m.NEED_PANEL,{direction:P.NEXT})),e.next=!0);return}var i=this._position,r=this.size,a=this._range,s=n.needPanelThreshold,l=i-this._alignPos,u=t[0],c=t[t.length-1];!e.prev&&(l<=u.range.min+s||i<=a.min+s)&&(n.trigger(new o.L(m.NEED_PANEL,{direction:P.PREV})),e.prev=!0),!e.next&&(l+r>=c.range.max-s||i>=a.max-s)&&(n.trigger(new o.L(m.NEED_PANEL,{direction:P.NEXT})),e.next=!0)}},n._checkReachEnd=function(e,n){var t=A(this._flicking),i=this._range,r=e>i.min&&ei.min&&n0){var t=n[0];t.resize(),this._updatePanelSizeByGrid(t,n)}else e.panels.forEach(function(e){return e.resize()});return this},n.batchInsert=function(){for(var e=[],n=0;n0){var f=o||c[0].resize();e._updatePanelSizeByGrid(f,c)}else c.forEach(function(e){return e.resize()});return u.forEach(function(e){e.increaseIndex(c.length),e.updatePosition()}),_(n,c)},[])},n.batchRemove=function(){for(var e=[],n=0;ns.length-1&&(u=s.length-1),a.moveToPanel(s[u],{duration:0}).catch(function(){})}}else a.moveToPanel(l,{duration:0}).catch(function(){})}i.camera.updateOffset(),(e.length>0||n.length>0)&&(i.trigger(new o.L(m.PANEL_CHANGE,{added:e,removed:n})),this.checkPanelContentsReady(_(e,n)))},n.checkPanelContentsReady=function(e){var n=this,t=A(this._flicking),i=t.resizeOnContentsReady,r=this._panels;if(i&&!t.virtualEnabled&&!((e=e.filter(function(e){return e.element&&!!e.element.querySelector("img, video")})).length<=0)){var o=new s.ZP;e.forEach(function(e){e.loading=!0}),o.on("readyElement",function(i){if(!n._flicking){o.destroy();return}var a=e[i.index],s=t.camera,l=t.control,u=l.activePanel?s.getProgressInPanel(l.activePanel):0;a.loading=!1,a.resize(),r.slice(a.index+1).forEach(function(e){return e.updatePosition()}),t.initialized&&(s.updateRange(),s.updateOffset(),s.updateAnchors(),l.animating||(l.updatePosition(u),l.updateInput()))}),o.on("preReady",function(e){n._flicking&&n.render(),e.readyCount===e.totalCount&&o.destroy()}),o.on("ready",function(){n._flicking&&n.render(),o.destroy()}),o.check(e.map(function(e){return e.element}))}},n._updateCameraAndControl=function(){var e=A(this._flicking),n=e.camera,t=e.control;n.updateRange(),n.updateOffset(),n.updateAnchors(),n.resetNeedPanelHistory(),t.updateInput()},n._showOnlyVisiblePanels=function(e){var n=e.renderer.panels,t=e.camera.visiblePanels.reduce(function(e,n){return e[n.index]=!0,e},{});n.forEach(function(n){n.index in t||n.loading?n.markForShow():e.holding||n.markForHide()})},n._updatePanelSizeByGrid=function(e,n){var t=A(this._flicking),i=t.panelsPerView;if(i<=0)throw new J(v.WRONG_OPTION("panelsPerView",i),p.WRONG_OPTION);if(!(n.length<=0)){var r=(t.camera.size-(e.margin.prev+e.margin.next)*(i-1))/i,o=t.horizontal?{width:r}:{height:r},a=c({size:r,margin:e.margin},!t.horizontal&&{height:e.height});t.noPanelStyleOverride||this._strategy.updatePanelSizes(t,o),t.panels.forEach(function(e){return e.resize(a)})}},n._removeAllChildsFromCamera=function(){for(var e=A(this._flicking).camera.element;e.firstChild;)e.removeChild(e.firstChild)},n._insertPanelElements=function(e,n){void 0===n&&(n=null);var t=A(this._flicking).camera.element,i=(null==n?void 0:n.element)||null,r=document.createDocumentFragment();e.forEach(function(e){return r.appendChild(e.element)}),t.insertBefore(r,i)},n._removePanelElements=function(e){var n=A(this._flicking).camera.element;e.forEach(function(e){n.removeChild(e.element)})},n._afterRender=function(){A(this._flicking).camera.applyTransform()},e}(),ey=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}u(n,e);var t=n.prototype;return t.render=function(){return f(this,void 0,void 0,function(){var e,n;return h(this,function(t){return e=A(this._flicking),(n=this._strategy).updateRenderingPanels(e),n.renderPanels(e),this._resetPanelElementOrder(),this._afterRender(),[2]})})},t._collectPanels=function(){var e=A(this._flicking),n=e.camera;this._removeAllTextNodes(),this._panels=this._strategy.collectPanels(e,n.children)},t._createPanel=function(e,n){return this._strategy.createPanel(e,n)},t._resetPanelElementOrder=function(){var e=A(this._flicking),n=e.camera.element,t=this._strategy.getRenderingElementsByOrder(e).reverse();t.forEach(function(e,i){var r=t[i-1]?t[i-1]:null;e.nextElementSibling!==r&&n.insertBefore(e,r)})},t._removeAllTextNodes=function(){var e=A(this._flicking).camera.element;R(e.childNodes).forEach(function(n){n.nodeType===Node.TEXT_NODE&&e.removeChild(n)})},n}(eO),ex=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}u(n,e);var t=n.prototype;return t._removePanelElements=function(e){},t._removeAllChildsFromCamera=function(){},n}(eO),eT=function(){function e(e){var n=e.index,t=e.align,i=e.flicking,r=e.elementProvider;this._index=n,this._flicking=i,this._elProvider=r,this._align=t,this._removed=!1,this._rendered=!0,this._loading=!1,this._resetInternalStates()}var n=e.prototype;return Object.defineProperty(n,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(n,"elementProvider",{get:function(){return this._elProvider},enumerable:!1,configurable:!0}),Object.defineProperty(n,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(n,"position",{get:function(){return this._pos+this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(n,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(n,"sizeIncludingMargin",{get:function(){return this._size+this._margin.prev+this._margin.next},enumerable:!1,configurable:!0}),Object.defineProperty(n,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),Object.defineProperty(n,"margin",{get:function(){return this._margin},enumerable:!1,configurable:!0}),Object.defineProperty(n,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(n,"removed",{get:function(){return this._removed},enumerable:!1,configurable:!0}),Object.defineProperty(n,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),Object.defineProperty(n,"loading",{get:function(){return this._loading},set:function(e){this._loading=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"range",{get:function(){return{min:this._pos,max:this._pos+this._size}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"toggled",{get:function(){return this._toggled},enumerable:!1,configurable:!0}),Object.defineProperty(n,"toggleDirection",{get:function(){return this._toggleDirection},enumerable:!1,configurable:!0}),Object.defineProperty(n,"offset",{get:function(){var e=this._toggleDirection,n=this._flicking.camera.rangeDiff;return e!==P.NONE&&this._toggled?e===P.PREV?-n:n:0},enumerable:!1,configurable:!0}),Object.defineProperty(n,"progress",{get:function(){var e=this._flicking;return this.index-e.camera.progress},enumerable:!1,configurable:!0}),Object.defineProperty(n,"outsetProgress",{get:function(){var e=this.position+this.offset,n=this._alignPos,t=this._flicking.camera,i=t.position;if(i===e)return 0;if(!(i=i.max)return 0;var o=n;return i.min>r.min&&(o-=i.min-r.min),i.max=r.min&&e<=r.max},n.isVisibleOnRange=function(e,n){var t=this.range;return n>t.min&&ee?i>=e&&i<=n&&(this._toggled=t===P.NEXT):i<=e&&i>=n&&(this._toggled=t!==P.NEXT),r!==this._toggled},n.updateCircularToggleDirection=function(){var e=this._flicking;if(!e.circularEnabled)return this._toggleDirection=P.NONE,this._togglePosition=0,this._toggled=!1,this;var n=e.camera,t=n.range,i=n.alignPosition,r=n.visibleRange,o=r.max-r.min,a=t.min-i,s=t.max-i+o,l=this.includeRange(s-o,s,!1),u=this.includeRange(a,a+o,!1);return this._toggled=!1,l?(this._toggleDirection=P.PREV,this._togglePosition=this.range.max+t.min-t.max+i,this.toggle(1/0,n.position)):u?(this._toggleDirection=P.NEXT,this._togglePosition=this.range.min+t.max-o+i,this.toggle(-1/0,n.position)):(this._toggleDirection=P.NONE,this._togglePosition=0),this},n._updateAlignPos=function(){this._alignPos=N(this._align,this._size)},n._resetInternalStates=function(){this._size=0,this._pos=0,this._margin={prev:0,next:0},this._height=0,this._alignPos=0,this._toggled=!1,this._togglePosition=0,this._toggleDirection=P.NONE},e}(),eI=function(){function e(e){var n=e.providerCtor;this._providerCtor=n}var n=e.prototype;return n.renderPanels=function(){},n.getRenderingIndexesByOrder=function(e){var n=e.renderer.panels.filter(function(e){return e.rendered}),t=n.filter(function(e){return e.toggled&&e.toggleDirection===P.PREV}),i=n.filter(function(e){return e.toggled&&e.toggleDirection===P.NEXT});return _(t,n.filter(function(e){return!e.toggled}),i).map(function(e){return e.index})},n.getRenderingElementsByOrder=function(e){var n=e.panels;return this.getRenderingIndexesByOrder(e).map(function(e){return n[e].element})},n.updateRenderingPanels=function(e){e.renderOnlyVisible?this._showOnlyVisiblePanels(e):e.panels.forEach(function(e){return e.markForShow()})},n.collectPanels=function(e,n){var t=this,i=D(e.renderer.align);return n.map(function(n,r){return new eT({index:r,elementProvider:new t._providerCtor(n),align:i,flicking:e})})},n.createPanel=function(e,n){return new eT(c(c({},n),{elementProvider:new this._providerCtor(e)}))},n.updatePanelSizes=function(e,n){e.panels.forEach(function(e){return e.setSize(n)})},n._showOnlyVisiblePanels=function(e){var n=e.renderer.panels,t=e.camera,i=t.visiblePanels.reduce(function(e,n){return e[n.index]=!0,e},{});n.forEach(function(n){n.index in i||n.loading?n.markForShow():e.holding||n.markForHide()}),t.updateOffset()},e}(),eA=function(e){function n(n){var t=e.call(this,n)||this;return n.elementProvider.init(t),t._elProvider=n.elementProvider,t._cachedInnerHTML=null,t}u(n,e);var t=n.prototype;return Object.defineProperty(t,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cachedInnerHTML",{get:function(){return this._cachedInnerHTML},enumerable:!1,configurable:!0}),Object.defineProperty(t,"elementIndex",{get:function(){var e=this._flicking,n=e.panelsPerView+1,t=e.panelCount,i=this._index;return this._toggled&&(i=this._toggleDirection===P.NEXT?i+t:i-t),X(i,n)},enumerable:!1,configurable:!0}),t.cacheRenderResult=function(e){this._cachedInnerHTML=e},t.uncacheRenderResult=function(){this._cachedInnerHTML=null},t.render=function(){var e=this._flicking.virtual,n=e.renderPanel,t=e.cache,i=this._elProvider.element,r=this._cachedInnerHTML||n(this,this._index);r!==i.innerHTML&&(i.innerHTML=r,t&&this.cacheRenderResult(r))},t.increaseIndex=function(n){return this.uncacheRenderResult(),e.prototype.increaseIndex.call(this,n)},t.decreaseIndex=function(n){return this.uncacheRenderResult(),e.prototype.decreaseIndex.call(this,n)},n}(eT),eR=function(){function e(){}var n=e.prototype;return n.renderPanels=function(e){var n=e.virtual,t=e.visiblePanels,i=Y(e.panelsPerView+1);t.forEach(function(e){var t=e.elementIndex;e.render(),n.show(t),i[t]=-1}),i.filter(function(e){return e>=0}).forEach(function(e){n.hide(e)})},n.getRenderingIndexesByOrder=function(e){var n=e.virtual,t=_(e.visiblePanels).filter(function(e){return e.rendered}).sort(function(e,n){return e.position+e.offset-(n.position+n.offset)});return t.length<=0?n.elements.map(function(e,n){return n}):_(t.map(function(e){return e.elementIndex}),n.elements.map(function(e,n){return c(c({},e),{idx:n})}).filter(function(e){return!e.visible}).map(function(e){return e.idx}))},n.getRenderingElementsByOrder=function(e){var n=e.virtual.elements;return this.getRenderingIndexesByOrder(e).map(function(e){return n[e].nativeElement})},n.updateRenderingPanels=function(e){var n=e.renderer.panels,t=e.camera,i=t.visiblePanels.reduce(function(e,n){return e[n.index]=!0,e},{});n.forEach(function(e){e.index in i||e.loading?e.markForShow():e.markForHide()}),t.updateOffset()},n.collectPanels=function(e){var n=D(e.renderer.align);return Y(e.virtual.initialPanelCount).map(function(t){return new eA({index:t,elementProvider:new ee(e),align:n,flicking:e})})},n.createPanel=function(e,n){return new eA(c(c({},n),{elementProvider:new ee(n.flicking)}))},n.updatePanelSizes=function(e,n){e.virtual.elements.forEach(function(e){W(e.nativeElement,n)}),e.panels.forEach(function(e){return e.setSize(n)})},e}(),eN=function(e){function n(n,t){var i=void 0===t?{}:t,r=i.align,o=void 0===r?b.CENTER:r,a=i.defaultIndex,s=i.horizontal,l=i.circular,u=i.circularFallback,c=void 0===u?y.LINEAR:u,f=i.bound,h=i.adaptive,d=i.panelsPerView,g=i.noPanelStyleOverride,_=i.resizeOnContentsReady,p=i.nested,v=i.needPanelThreshold,m=i.preventEventsBeforeInit,P=i.deceleration,E=i.duration,O=i.easing,T=i.inputType,I=i.moveType,A=i.threshold,R=i.interruptable,N=i.bounce,w=i.iOSEdgeSwipeThreshold,k=i.preventClickOnDrag,C=i.disableOnInit,D=i.changeOnHold,L=i.renderOnlyVisible,z=i.virtual,S=void 0===z?null:z,j=i.autoInit,M=i.autoResize,F=i.useResizeObserver,H=i.resizeDebounce,G=i.maxResizeDebounce,V=i.useFractionalSize,B=i.externalRenderer,W=i.renderExternal,U=e.call(this)||this;return U._initialized=!1,U._plugins=[],U._align=o,U._defaultIndex=void 0===a?0:a,U._horizontal=void 0===s||s,U._circular=void 0!==l&&l,U._circularFallback=c,U._bound=void 0!==f&&f,U._adaptive=void 0!==h&&h,U._panelsPerView=void 0===d?-1:d,U._noPanelStyleOverride=void 0!==g&&g,U._resizeOnContentsReady=void 0!==_&&_,U._nested=void 0!==p&&p,U._virtual=S,U._needPanelThreshold=void 0===v?0:v,U._preventEventsBeforeInit=void 0===m||m,U._deceleration=void 0===P?.0075:P,U._duration=void 0===E?500:E,U._easing=void 0===O?function(e){return 1-Math.pow(1-e,3)}:O,U._inputType=void 0===T?["mouse","touch"]:T,U._moveType=void 0===I?"snap":I,U._threshold=void 0===A?40:A,U._interruptable=void 0===R||R,U._bounce=void 0===N?"20%":N,U._iOSEdgeSwipeThreshold=void 0===w?30:w,U._preventClickOnDrag=void 0===k||k,U._disableOnInit=void 0!==C&&C,U._changeOnHold=void 0!==D&&D,U._renderOnlyVisible=void 0!==L&&L,U._autoInit=void 0===j||j,U._autoResize=void 0===M||M,U._useResizeObserver=void 0===F||F,U._resizeDebounce=void 0===H?0:H,U._maxResizeDebounce=void 0===G?100:G,U._useFractionalSize=void 0!==V&&V,U._externalRenderer=void 0===B?null:B,U._renderExternal=void 0===W?null:W,U._viewport=new q(U,x(n)),U._autoResizer=new Q(U),U._renderer=U._createRenderer(),U._camera=U._createCamera(),U._control=U._createControl(),U._virtualManager=new en(U,S),U._autoInit&&U.init(),U}u(n,e);var t=n.prototype;return Object.defineProperty(t,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),Object.defineProperty(t,"camera",{get:function(){return this._camera},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderer",{get:function(){return this._renderer},enumerable:!1,configurable:!0}),Object.defineProperty(t,"viewport",{get:function(){return this._viewport},enumerable:!1,configurable:!0}),Object.defineProperty(t,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circularEnabled",{get:function(){return this._camera.circularEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t,"virtualEnabled",{get:function(){return this._panelsPerView>0&&null!=this._virtual},enumerable:!1,configurable:!0}),Object.defineProperty(t,"index",{get:function(){return this._control.activeIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t,"element",{get:function(){return this._viewport.element},enumerable:!1,configurable:!0}),Object.defineProperty(t,"currentPanel",{get:function(){return this._control.activePanel},enumerable:!1,configurable:!0}),Object.defineProperty(t,"panels",{get:function(){return this._renderer.panels},enumerable:!1,configurable:!0}),Object.defineProperty(t,"panelCount",{get:function(){return this._renderer.panelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t,"visiblePanels",{get:function(){return this._camera.visiblePanels},enumerable:!1,configurable:!0}),Object.defineProperty(t,"animating",{get:function(){return this._control.animating},enumerable:!1,configurable:!0}),Object.defineProperty(t,"holding",{get:function(){return this._control.holding},enumerable:!1,configurable:!0}),Object.defineProperty(t,"activePlugins",{get:function(){return this._plugins},enumerable:!1,configurable:!0}),Object.defineProperty(t,"align",{get:function(){return this._align},set:function(e){this._align=e,this._renderer.align=e,this._camera.align=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultIndex",{get:function(){return this._defaultIndex},set:function(e){this._defaultIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"horizontal",{get:function(){return this._horizontal},set:function(e){this._horizontal=e,this._control.controller.updateDirection(),this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circular",{get:function(){return this._circular},set:function(e){this._circular=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circularFallback",{get:function(){return this._circularFallback},enumerable:!1,configurable:!0}),Object.defineProperty(t,"bound",{get:function(){return this._bound},set:function(e){this._bound=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"adaptive",{get:function(){return this._adaptive},set:function(e){this._adaptive=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"panelsPerView",{get:function(){return this._panelsPerView},set:function(e){this._panelsPerView=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"noPanelStyleOverride",{get:function(){return this._noPanelStyleOverride},set:function(e){this._noPanelStyleOverride=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"resizeOnContentsReady",{get:function(){return this._resizeOnContentsReady},set:function(e){this._resizeOnContentsReady=e,e&&this._renderer.checkPanelContentsReady(this._renderer.panels)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"nested",{get:function(){return this._nested},set:function(e){this._nested=e;var n=this._control.controller.axes;n&&(n.options.nested=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"needPanelThreshold",{get:function(){return this._needPanelThreshold},set:function(e){this._needPanelThreshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventEventsBeforeInit",{get:function(){return this._preventEventsBeforeInit},set:function(e){this._preventEventsBeforeInit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"deceleration",{get:function(){return this._deceleration},set:function(e){this._deceleration=e;var n=this._control.controller.axes;n&&(n.options.deceleration=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"easing",{get:function(){return this._easing},set:function(e){this._easing=e;var n=this._control.controller.axes;n&&(n.options.easing=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"duration",{get:function(){return this._duration},set:function(e){this._duration=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"inputType",{get:function(){return this._inputType},set:function(e){this._inputType=e;var n=this._control.controller.panInput;n&&(n.options.inputType=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"moveType",{get:function(){return this._moveType},set:function(e){this._moveType=e;var n=this._control,t=this._createControl(),i=n.activePanel;t.copy(n);var r=i?this._camera.getProgressInPanel(i):0;this._control=t,this._control.updatePosition(r),this._control.updateInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"threshold",{get:function(){return this._threshold},set:function(e){this._threshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"interruptable",{get:function(){return this._interruptable},set:function(e){this._interruptable=e;var n=this._control.controller.axes;n&&(n.options.interruptable=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"bounce",{get:function(){return this._bounce},set:function(e){this._bounce=e,this._control.updateInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"iOSEdgeSwipeThreshold",{get:function(){return this._iOSEdgeSwipeThreshold},set:function(e){this._iOSEdgeSwipeThreshold=e;var n=this._control.controller.panInput;n&&(n.options.iOSEdgeSwipeThreshold=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventClickOnDrag",{get:function(){return this._preventClickOnDrag},set:function(e){if(e!==this._preventClickOnDrag){var n=this._control.controller;e?n.addPreventClickHandler():n.removePreventClickHandler(),this._preventClickOnDrag=e}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"disableOnInit",{get:function(){return this._disableOnInit},set:function(e){this._disableOnInit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"changeOnHold",{get:function(){return this._changeOnHold},set:function(e){this._changeOnHold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderOnlyVisible",{get:function(){return this._renderOnlyVisible},set:function(e){this._renderOnlyVisible=e,this._renderer.render()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"virtual",{get:function(){return this._virtualManager},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoInit",{get:function(){return this._autoInit},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoResize",{get:function(){return this._autoResize},set:function(e){this._autoResize=e,e?this._autoResizer.enable():this._autoResizer.disable()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"useResizeObserver",{get:function(){return this._useResizeObserver},set:function(e){this._useResizeObserver=e,this._autoResize&&this._autoResizer.enable()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"resizeDebounce",{get:function(){return this._resizeDebounce},enumerable:!1,configurable:!0}),Object.defineProperty(t,"maxResizeDebounce",{get:function(){return this._maxResizeDebounce},enumerable:!1,configurable:!0}),Object.defineProperty(t,"useFractionalSize",{get:function(){return this._useFractionalSize},enumerable:!1,configurable:!0}),Object.defineProperty(t,"externalRenderer",{get:function(){return this._externalRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderExternal",{get:function(){return this._renderExternal},enumerable:!1,configurable:!0}),t.init=function(){var e=this;if(this._initialized)return Promise.resolve();var n=this._camera,t=this._renderer,i=this._control,r=this._virtualManager,a=this.trigger,s=this._preventEventsBeforeInit;return n.init(),r.init(),t.init(this),i.init(this),s&&(this.trigger=function(){return e}),this._initialResize(),this._moveToInitialPanel(),this._autoResize&&this._autoResizer.enable(),this._preventClickOnDrag&&i.controller.addPreventClickHandler(),this._disableOnInit&&this.disableInput(),t.checkPanelContentsReady(t.panels),this._initialized=!0,t.render().then(function(){e._plugins.forEach(function(n){return n.init(e)}),s&&(e.trigger=a),e.trigger(new o.L(m.READY))})},t.destroy=function(){this.off(),this._autoResizer.disable(),this._control.destroy(),this._camera.destroy(),this._renderer.destroy(),this._plugins.forEach(function(e){return e.destroy()}),this._initialized=!1},t.prev=function(e){var n,t,i;return void 0===e&&(e=this._duration),this.moveTo(null!==(i=null===(t=null===(n=this._control.activePanel)||void 0===n?void 0:n.prev())||void 0===t?void 0:t.index)&&void 0!==i?i:-1,e,P.PREV)},t.next=function(e){var n,t,i;return void 0===e&&(e=this._duration),this.moveTo(null!==(i=null===(t=null===(n=this._control.activePanel)||void 0===n?void 0:n.next())||void 0===t?void 0:t.index)&&void 0!==i?i:this._renderer.panelCount,e,P.NEXT)},t.moveTo=function(e,n,t){void 0===n&&(n=this._duration),void 0===t&&(t=P.NONE);var i=this._renderer,r=i.panelCount,o=i.getPanel(e);return o?this._control.animating?Promise.reject(new J(v.ANIMATION_ALREADY_PLAYING,p.ANIMATION_ALREADY_PLAYING)):(this._control.holding&&this._control.controller.release(),this._control.moveToPanel(o,{duration:n,direction:t})):Promise.reject(new J(v.INDEX_OUT_OF_RANGE(e,0,r-1),p.INDEX_OUT_OF_RANGE))},t.updateAnimation=function(e,n,t){if(this._control.animating){var i=this._renderer,r=i.panelCount,o=i.getPanel(e);if(!o)throw new J(v.INDEX_OUT_OF_RANGE(e,0,r-1),p.INDEX_OUT_OF_RANGE);this._control.updateAnimation(o,n,t)}},t.stopAnimation=function(){this._control.animating&&this._control.stopAnimation()},t.getPanel=function(e){return this._renderer.getPanel(e)},t.enableInput=function(){return this._control.enable(),this},t.disableInput=function(){return this._control.disable(),this},t.getStatus=function(e){var n,t,i=void 0===e?{}:e,r=i.index,o=i.position,a=i.includePanelHTML,s=void 0!==a&&a,l=i.visiblePanelsOnly,u=void 0!==l&&l,c=this._camera,f={panels:(u?this.visiblePanels:this.panels).map(function(e){var n={index:e.index};return s&&(n.html=e.element.outerHTML),n})};if((void 0===r||r)&&(f.index=this.index),void 0===o||o){var h=c.findNearestAnchor(c.position);h&&(f.position={panel:h.panel.index,progressInPanel:c.getProgressInPanel(h.panel)})}if(u){var d=this.visiblePanels;f.visibleOffset=null!==(t=null===(n=d[0])||void 0===n?void 0:n.index)&&void 0!==t?t:0}return f},t.setStatus=function(e){if(!this._initialized)throw new J(v.NOT_INITIALIZED,p.NOT_INITIALIZED);var n,t=e.index,i=e.position,r=e.visibleOffset,o=e.panels,a=this._renderer,s=this._control;if((null===(n=o[0])||void 0===n?void 0:n.html)&&!this._renderExternal&&(a.batchRemove({index:0,deleteCount:this.panels.length,hasDOMInElements:!0}),a.batchInsert({index:0,elements:z(o.map(function(e){return e.html})),hasDOMInElements:!0})),t){var l=r?t-r:t;this.moveTo(l,0).catch(function(){})}if(i&&this._moveType===E.FREE_SCROLL){var u=i.panel,c=i.progressInPanel,l=r?u-r:u,f=a.panels[l].range,h=f.min+(f.max-f.min)*c;s.moveToPosition(h,0).catch(function(){})}},t.addPlugins=function(){for(var e,n=this,t=[],i=0;i=0&&(n.destroy(),e._plugins.splice(t,1))}),this},t.resize=function(){return f(this,void 0,void 0,function(){var e,n,t,i,r,a,s,l,u,c,f;return h(this,function(h){switch(h.label){case 0:return e=this._viewport,n=this._renderer,t=this._camera,r=(i=this._control).activePanel,a=e.width,s=e.height,l=r?t.getProgressInPanel(r):0,this.trigger(new o.L(m.BEFORE_RESIZE,{width:a,height:s,element:e.element})),e.resize(),[4,n.forceRenderAllPanels()];case 1:return h.sent(),n.updatePanelSize(),t.updateAlignPos(),t.updateRange(),t.updateAnchors(),t.updateAdaptiveHeight(),t.updateOffset(),[4,n.render()];case 2:return h.sent(),i.animating||(i.updatePosition(l),i.updateInput()),u=e.width,c=e.height,f=u!==a||c!==s,this.trigger(new o.L(m.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:a,height:s},sizeChanged:f,element:e.element})),[2]}})})},t.append=function(e){return this.insert(this._renderer.panelCount,e)},t.prepend=function(e){return this.insert(0,e)},t.insert=function(e,n){if(this._renderExternal)throw new J(v.NOT_ALLOWED_IN_FRAMEWORK,p.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchInsert({index:e,elements:z(n),hasDOMInElements:!0})},t.remove=function(e,n){if(void 0===n&&(n=1),this._renderExternal)throw new J(v.NOT_ALLOWED_IN_FRAMEWORK,p.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchRemove({index:e,deleteCount:n,hasDOMInElements:!0})},t._createControl=function(){var e,n=this._moveType,t=Object.keys(E).map(function(e){return E[e]}),i=Array.isArray(n)?n[0]:n,r=Array.isArray(n)&&null!==(e=n[1])&&void 0!==e?e:{};if(!j(t,i))throw new J(v.WRONG_OPTION("moveType",JSON.stringify(n)),p.WRONG_OPTION);switch(i){case E.SNAP:return new eg(r);case E.FREE_SCROLL:return new e_(r);case E.STRICT:return new ep(r)}},t._createCamera=function(){return this._circular&&this._bound&&console.warn('"circular" and "bound" option cannot be used together, ignoring bound.'),new eE(this,{align:this._align})},t._createRenderer=function(){var e=this._externalRenderer;return this._virtual&&this._panelsPerView<=0&&console.warn('"virtual" and "panelsPerView" option should be used together, ignoring virtual.'),e||(this._renderExternal?this._createExternalRenderer():this._createVanillaRenderer())},t._createExternalRenderer=function(){var e=this._renderExternal,n=e.renderer,t=e.rendererOptions;return new n(c({align:this._align},t))},t._createVanillaRenderer=function(){var e=this.virtualEnabled;return new ey({align:this._align,strategy:e?new eR:new eI({providerCtor:$})})},t._moveToInitialPanel=function(){var e=this._renderer,n=this._control,t=this._camera,i=e.getPanel(this._defaultIndex)||e.getPanel(0);if(i){var r=t.findNearestAnchor(i.position),o=r&&i.index!==r.panel.index?r.panel:i;if(n.setActive(o,null,!1),!r)throw new J(v.POSITION_NOT_REACHABLE(o.position),p.POSITION_NOT_REACHABLE);var a=o.position;t.canReach(o)||(a=r.position),t.lookAt(a),n.updateInput(),t.updateOffset()}},t._initialResize=function(){var e=this._viewport,n=this._renderer,t=this._camera,i=this._control;this.trigger(new o.L(m.BEFORE_RESIZE,{width:0,height:0,element:e.element})),e.resize(),n.updatePanelSize(),t.updateAlignPos(),t.updateRange(),t.updateAnchors(),t.updateOffset(),i.updateInput();var r=e.width,a=e.height;this.trigger(new o.L(m.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:0,height:0},sizeChanged:0!==r||0!==a,element:e.element}))},n.VERSION="4.10.6",n}(o.Z),ew=function(e,n){[o.Z.prototype,eN.prototype].forEach(function(t){Object.getOwnPropertyNames(t).filter(function(n){return!e[n]&&0!==n.indexOf("_")&&"constructor"!==n}).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);if(r.value)Object.defineProperty(e,i,{value:function(){for(var e,t=[],i=0;i0){var l=-1,u=-1;n.removed.forEach(function(e){l<0&&(l=e),u>=0&&e!==u-1&&(s.push.apply(s,_(eD(i,u,l+1))),l=e),u=e,o.splice(e,1)}),s.push.apply(s,_(eD(i,u,l+1)))}if(n.ordered.forEach(function(e){var n=g(e,2),t=n[0],i=n[1],o=r.splice(t,1)[0];r.splice(i,0,o)}),n.ordered.length>0&&(r.forEach(function(e,n){var t=n-e.index;t>0?e.increaseIndex(t):e.decreaseIndex(-t)}),r.sort(function(e,n){return e.index-n.index}),r.forEach(function(e){e.updatePosition()})),n.added.length>0){var c=-1,f=-1,h=t.slice(o.length);n.added.forEach(function(e,t){c<0&&(c=t),f>=0&&e!==f+1?(a.push.apply(a,_(eC(i,n,h,c,t+1))),c=-1,f=-1):f=e}),c>=0&&a.push.apply(a,_(eC(i,n,h,c)))}(n.added.length>0||n.removed.length>0)&&i.updateAfterPanelChange(a,s)},eC=function(e,n,t,i,r){return e.batchInsertDefer.apply(e,_(n.added.slice(i,r).map(function(e,n){return{index:e,elements:[t[n]],hasDOMInElements:!1}})))},eD=function(e,n,t){var i=e.panels.slice(n,t);return e.batchRemoveDefer({index:n,deleteCount:i.length,hasDOMInElements:!1})},eL=function(e,n){var t=n.removed.reduce(function(e,n){return e[n]=!0,e},{}),i=n.maintained.reduce(function(e,n){var t=g(n,2),i=t[0],r=t[1];return e[i]=r,e},{});return _(e.panels.filter(function(e){return!t[e.index]}).sort(function(e,n){return e.position+e.offset-(n.position+n.offset)}).map(function(e){return n.list[i[e.index]]}),n.added.map(function(e){return n.list[e]}))},ez=function(e,n,t){void 0===e&&(e=b.CENTER),void 0===n&&(n=!0);var i=eS(e),r=ej(e);if(null==r)return"";var o="calc("+i+" - ("+(t||"0px")+" * "+r.percentage+") - "+r.absolute+"px)";return n?"translate("+o+")":"translate(0, "+o+")"},eS=function(e){return eM("object"==typeof e?e.camera:e)},ej=function(e){return C(eM("object"==typeof e?e.panel:e))},eM=function(e){if("number"==typeof e)return e+"px";switch(e){case b.CENTER:return"50%";case b.NEXT:return"100%";case b.PREV:return"0%";default:return e}}}}]);